import { zlRequest } from "../index";

// 请求浏览记录
export const getHistoryRecords = (data: any) => {
  return zlRequest.get({ url: `/member/member/getBrowsingHistory?pageNum=${data.pageNum}&pageSize=${data.pageSize}`, showLoading: false });
};

// 清空浏览记录
export const removeAllHistroyRecord = () => {
  return zlRequest.post({ url: "/member/member/clearBrowsingHistory", showLoading: false })
}

//收藏列表
export const getCollectList = () => {
  return zlRequest.get({ url: "/member/member/getCollectHistory", showLoading: false })
}

// 取消收藏
export const cancelCollect = (data: any) => {
  return zlRequest.post({ url: "/article/article/cancelFavorites", showLoading: false, data })
}

// 获取消息通知
export const getMsgList = () => {
  return zlRequest.get({ url: "/system/imMail/list", showLoading: false })
}

// 获取规划列表
export const getPlanList = () => {
  return zlRequest.get({ url: "/article/article_policy/getUserPlan", showLoading: false })
}
